home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Code Resources / CDEF - DeBugger 2.0.2 / MenuBar.c < prev    next >
Encoding:
Text File  |  1995-10-19  |  694 b   |  28 lines  |  [TEXT/KAHL]

  1. // Prototypes
  2.     void DrawTheMenuBar( void );
  3.  
  4. // Globals
  5.     MenuHandle            gAppleMenu;
  6.  
  7. /******************************************************************
  8.  
  9.     Set up the menus and the menu bar 
  10.     
  11. ******************************************************************/
  12. void DrawTheMenuBar( void )
  13. {    
  14.     Handle                myMenuBar;
  15.     
  16.     // This allocates storage for, and reads in a menu list from a MBAR res
  17.         myMenuBar = GetNewMBar( 128 );
  18.         
  19.     // This installs a menu list (a list of handles to menus)    
  20.         SetMenuBar( myMenuBar );  
  21.         
  22.     // Now add the apple menu items to the apple menu                
  23.         gAppleMenu = GetMHandle( MENU_APPLE );    
  24.         AddResMenu( gAppleMenu, 'DRVR' );
  25.     
  26.     // Draw the menu
  27.         DrawMenuBar();
  28. }